<?php


namespace App\Consts;


class GlobalRelationshipConst
{

    public static $attentionStatusChange = [
        self::ATTENTION_STATUS_NULL => self::FRONTEND_STATUS_NULL,
        self::ATTENTION_STATUS_ATTENTION => self::FRONTEND_STATUS_ATTENTION,
        self::ATTENTION_STATUS_FANS => self::FRONTEND_STATUS_NULL,
        self::ATTENTION_STATUS_EACH => self::FRONTEND_STATUS_EACH,
    ];

    // 以下为前端返回的字段 : 关注关系，1没关系，1关注了，3自己，4互关
    public const FRONTEND_STATUS_NULL = 1;
    public const FRONTEND_STATUS_ATTENTION = 2;
    public const FRONTEND_STATUS_MYSELF = 3;
    public const FRONTEND_STATUS_EACH = 4;

    // 以下为数据库存的字段 : 关注关系，0没关系，1关注，2粉丝，3互关
    public const ATTENTION_STATUS_NULL = 0;
    public const ATTENTION_STATUS_ATTENTION = 1;
    public const ATTENTION_STATUS_FANS = 2;
    public const ATTENTION_STATUS_EACH = 3;

}
